package trader.orig;

public class SoughtInstrument extends Instrument {
    // sell from the Issuer's point of view
    private double sell;
    private int amountOfMoney; 
    
    public SoughtInstrument(String symbol, String id) {
        super(symbol, id);
    }
    
    public synchronized void setSell(double sell) {
        this.sell = sell;
    }
    
    public synchronized double getSell() {
        return sell;
    }
    
    public synchronized void setamountOfMoney(int money) {
        amountOfMoney= money; 
    }
    
    public synchronized int amountOfMoney() {
        return amountOfMoney;
    }
    
    @Override
    public synchronized String toString() {
        return id + " :: " + symbol + ": sell=" + sell;
    }
}
